namespace OracleInternal.BinXml
{
	internal class ObxmlOpcode
	{
		internal enum OpcodeIds
		{
			None = -1,
			DATSTR1 = 0,
			DATSTR2 = 1,
			DATSTR3 = 2,
			DATSTR4 = 3,
			DATSTR5 = 4,
			DATSTR6 = 5,
			DATSTR7 = 6,
			DATSTR8 = 7,
			DATSTR9 = 8,
			DATSTR10 = 9,
			DATSTR11 = 10,
			DATSTR12 = 11,
			DATSTR13 = 12,
			DATSTR14 = 13,
			DATSTR15 = 14,
			DATSTR16 = 0xF,
			DATSTR17 = 0x10,
			DATSTR18 = 17,
			DATSTR19 = 18,
			DATSTR20 = 19,
			DATSTR21 = 20,
			DATSTR22 = 21,
			DATSTR23 = 22,
			DATSTR24 = 23,
			DATSTR25 = 24,
			DATSTR26 = 25,
			DATSTR27 = 26,
			DATSTR28 = 27,
			DATSTR29 = 28,
			DATSTR30 = 29,
			DATSTR31 = 30,
			DATSTR32 = 0x1F,
			DATSTR33 = 0x20,
			DATSTR34 = 33,
			DATSTR35 = 34,
			DATSTR36 = 35,
			DATSTR37 = 36,
			DATSTR38 = 37,
			DATSTR39 = 38,
			DATSTR40 = 39,
			DATSTR41 = 40,
			DATSTR42 = 41,
			DATSTR43 = 42,
			DATSTR44 = 43,
			DATSTR45 = 44,
			DATSTR46 = 45,
			DATSTR47 = 46,
			DATSTR48 = 47,
			DATSTR49 = 48,
			DATSTR50 = 49,
			DATSTR51 = 50,
			DATSTR52 = 51,
			DATSTR53 = 52,
			DATSTR54 = 53,
			DATSTR55 = 54,
			DATSTR56 = 55,
			DATSTR57 = 56,
			DATSTR58 = 57,
			DATSTR59 = 58,
			DATSTR60 = 59,
			DATSTR61 = 60,
			DATSTR62 = 61,
			DATSTR63 = 62,
			DATSTR64 = 0x3F,
			DATBIN1 = 0x40,
			DATBIN2 = 65,
			DATBIN3 = 66,
			DATBIN4 = 67,
			DATBIN5 = 68,
			DATBIN6 = 69,
			DATBIN7 = 70,
			DATBIN8 = 71,
			DATBIN9 = 72,
			DATBIN10 = 73,
			DATBIN11 = 74,
			DATBIN12 = 75,
			DATBIN13 = 76,
			DATBIN14 = 77,
			DATBIN15 = 78,
			DATBIN16 = 79,
			DATBIN17 = 80,
			DATBIN18 = 81,
			DATBIN19 = 82,
			DATBIN20 = 83,
			DATBIN21 = 84,
			DATBIN22 = 85,
			DATBIN23 = 86,
			DATBIN24 = 87,
			DATBIN25 = 88,
			DATBIN26 = 89,
			DATBIN27 = 90,
			DATBIN28 = 91,
			DATBIN29 = 92,
			DATBIN30 = 93,
			DATBIN31 = 94,
			DATBIN32 = 95,
			DATNM1 = 96,
			DATNM2 = 97,
			DATNM3 = 98,
			DATNM4 = 99,
			DATNM5 = 100,
			DATNM6 = 101,
			DATNM7 = 102,
			DATNM8 = 103,
			DATNM9 = 104,
			DATNM10 = 105,
			DATNM11 = 106,
			DATNM12 = 107,
			DATNM13 = 108,
			DATNM14 = 109,
			DATNM15 = 110,
			DATNM16 = 111,
			DATNM17 = 112,
			DATNM18 = 113,
			DATNM19 = 114,
			DATNM20 = 115,
			DATNM21 = 116,
			DATINT1 = 117,
			DATINT2 = 118,
			DATINT4 = 119,
			DATINT8 = 120,
			DATUINT1 = 121,
			DATUINT2 = 122,
			DATUINT4 = 123,
			DATUINT8 = 124,
			DATFLT4 = 125,
			DATFLT8 = 126,
			DATEPH4 = 0x7F,
			DATEPH8 = 0x80,
			DATEPZ6 = 129,
			DATEPZ10 = 130,
			DATODT = 131,
			DATOTS = 132,
			DATOTSZ = 133,
			DATBOL = 134,
			DATQNM = 135,
			DATENM1 = 136,
			DATENM2 = 137,
			DATAL2 = 138,
			DATAL8 = 139,
			DATATL1 = 140,
			DATATL2 = 141,
			DATATL8 = 142,
			DATEMPT = 143,
			DATNULL = 144,
			SCHSST1 = 145,
			SCHSST4 = 146,
			SCHSST4V = 147,
			SCHSEND = 148,
			DTDSTR = 149,
			DTDELEM = 150,
			DTDALIST = 151,
			DTDENT = 152,
			DTDPENT = 153,
			DTDNOT = 154,
			DTDEND = 155,
			ENTREF = 156,
			CHARREF = 157,
			DOC = 158,
			STRTSEC = 159,
			ENDSEC = 160,
			CHUNK = 161,
			REF = 162,
			TEXT1 = 163,
			TEXT2 = 164,
			TEXT8 = 165,
			CDATA1 = 166,
			CDATA2 = 167,
			CDATA8 = 168,
			PI1L1 = 169,
			PI2L4 = 170,
			CMT1 = 171,
			CMT2 = 172,
			CMT8 = 173,
			DEFNM4L1 = 174,
			DEFNM4L2 = 175,
			DEFNM8L1 = 176,
			DEFNM8L2 = 177,
			DEFPFX4 = 178,
			DEFPFX8 = 179,
			DEFQ4N4L1 = 180,
			DEFQ4N4L2 = 181,
			DEFQ4N8L1 = 182,
			DEFQ4N8L2 = 183,
			DEFQ8N4L1 = 184,
			DEFQ8N4L2 = 185,
			DEFQ8N8L1 = 186,
			DEFQ8N8L2 = 187,
			PRPK1L1 = 188,
			PRPK1L2 = 189,
			PRPK2L1 = 190,
			PRPK2L2 = 191,
			PRPT2L1 = 192,
			PRPT2L2 = 193,
			PRPT4L1 = 194,
			PRPT4L2 = 195,
			PRPT8L1 = 196,
			PRPT8L2 = 197,
			PRPSTK1 = 198,
			PRPSTK2 = 199,
			PRPSTT2 = 200,
			PRPSTT4 = 201,
			PRPSTT8 = 202,
			PRPSTK1F = 203,
			PRPSTK2F = 204,
			PRPSTT2F = 205,
			PRPSTT4F = 206,
			PRPSTT8F = 207,
			PRPSTK1V = 208,
			PRPSTK2V = 209,
			PRPSTT2V = 210,
			PRPSTT4V = 211,
			PRPSTT8V = 212,
			ELMSTART = 213,
			ELMSTSSEQ = 214,
			ARRBEG = 215,
			ARREND = 216,
			ENDPRP = 217,
			NOSEQ = 218,
			NOP = 219,
			NOPARR = 220,
			NMSPC = 221,
			NSP4 = 222,
			NSP8 = 223,
			ARRSTK1V = 224,
			ARRSTK2V = 225,
			ARRSTT4V = 226,
			ARRSTT8V = 227,
			PRTDATA = 228,
			PRTDATAT = 229,
			PRTTEXT = 230,
			PRTCDATA = 231,
			PRTPI = 232,
			PRTCMT = 233,
			SPACE1 = 234,
			SPACE2 = 235,
			SPACE8 = 236,
			XMLDECL = 237,
			SPACEQN = 238,
			SPACEQN8 = 239,
			ENDPRPSP = 240,
			ENDPRPSP8 = 241,
			DTDDECL = 242,
			FORMATEXTENSION = 254,
			OPCODE_NUMBER = 243,
			DTDSTRE = 0,
			DTDNOTE = 1,
			DTDENTE = 2,
			DTDPENTE = 3,
			DTDALISTE = 4,
			EXTENDED_OPCODE_NUMBER = 5
		}

		internal enum OpcodeDataTypes : byte
		{
			String = 1,
			Bin,
			Boolean,
			Int,
			Uint,
			Float,
			Oranum,
			Oradate,
			Orats,
			Epoch,
			Epochtz,
			Enum,
			Qname,
			Double,
			Byte,
			Short,
			Long,
			Unsignedbyte,
			Unsignedshort,
			Unsignedint,
			Unsignedlong,
			Hexbinary,
			Base64binary
		}

		internal enum CSXHeaderFlags
		{
			HDR_FLAG_NOINTOK = 1,
			HDR_FLAG_NOSCHREF = 2,
			HDR_FLAG_RGUID = 4,
			HDR_FLAG_DOCID = 8,
			HDR_FLAG_PATHID = 0x10,
			HDR_FLAG_SEQID = 0x20,
			HDR_FLAG_BIGEFLT = 0x40,
			HDR_FLAG_MASK = 0x7F,
			HDR_FLAG_STANDALONE_SPECIFIED = 0x40,
			HDR_FLAG_STANDALONE_TRUE = 0x80,
			HDR_FLAG_ENCODING_SPECIFIED = 0x100
		}

		internal static byte HDR_CSX_VERSION;

		internal static readonly string[] ENCODING_TYPES;

		internal static readonly int STARTELEM_FLAG_SSEQ;

		internal static readonly int STARTELEM_FLAG_NOTDECTYP;

		internal static readonly int STARTELEM_FLAG_IMPTYP;

		internal static readonly int STARTELEM_FLAG_PFXID;

		internal static readonly int DATL2MAXLEN;

		internal static readonly long DATL8MAXLEN;

		internal static readonly int DATL2STRMSK;

		internal static readonly int DATL2BINMSK;

		internal static readonly long DATL8STRMSK;

		internal static readonly long DATL8BINMSK;

		internal static int ENCODER_IGN_WHITESPACE;

		internal static int ENCODER_NO_OPTPRPOPC;

		internal static int ENCODER_FORCE_NONSCHEMABASED;

		internal static int ENCODER_NO_SCHEMASEQ;

		internal static int ENCODER_NO_ARRAYMODE;

		internal static readonly int DTD_SYSTEM_EMPTY;

		internal static readonly int DTD_internal_EMPTY;

		internal static readonly int DTD_internal_SYSTEM_EMPTY;

		internal static readonly int DTD_VALUE_EMPTY;

		internal static readonly int NAMESPACEID_XML;

		internal static readonly int NAMESPACEID_XMLNS;

		internal static readonly int NAMESPACEID_NONAMESPACE;

		internal const short SPACE_FLAG = 0;

		internal const short TAB_FLAG = 32;

		internal const short LNFEED_FLAG = 64;

		internal const short CR_FLAG = 96;

		internal const short CR_SPACE_FLAG = 128;

		internal static readonly short SPACE1_IDMASK;

		internal static readonly short SPACE2_IDMASK;

		internal static readonly short SPACE_FLAGMASK;

		internal static readonly int CSX_MAX_HASH_TRIES;

		internal static readonly int CSX_IDGEN_SKIP_LEN;

		internal static readonly long UB4MAXVAL;

		internal static readonly long SB4MAXVAL;

		internal static readonly int UB2MAXVAL;

		internal static readonly int SB2MAXVAL;

		internal static readonly short UB1MAXVAL;

		internal static readonly int CSX_TOKENTABLE_INITIAL_CAPACITY;

		internal static readonly int CSX_NAMESPACE_LIST_INITIAL_CAPACITY;

		internal static string CSX_DEFAULT_ENCODING;

		internal static readonly int CSX_INTERNAL_ERR;

		internal static readonly int CSX_UNEXPECTED_EOF_ERR;

		internal static readonly int CSX_NOT_FOUND_ERR;

		internal static readonly int CSX_MAX_PEFIX_LEN_ERR;

		internal static readonly int CSX_INVALID_BINXML_ERR;

		internal static readonly int CSX_INVALID_ENCTYPE_ERR;

		internal static readonly int CSX_MAX_NSURL_ERR;

		internal static readonly int CSX_TYPECONV_ERR;

		internal static readonly int CSX_INVALID_DTDEVT_ERR;

		internal static readonly int CSX_MISMATCH_TGTNS_ERR;

		internal static readonly int CSX_INVALID_SCHEMALINF_ERR;

		internal static readonly int CSX_CANNOT_CREATEURL_ERR;

		internal static readonly int CSX_NSID_ERR;

		internal static readonly int CSX_TOKEN_NOTFOUND_ERR;

		internal static readonly int CSX_VERSION_MISMATCH;

		internal static readonly int CSX_INVALID_OPCODE_ERR;

		internal static readonly int CSX_NO_STRING_TERMINATOR_ERR;

		internal static readonly string CSX_NS_DEFINITION;

		internal static readonly string CSX_ENCODING_TYPE;

		internal static readonly string CSX_KIDLIST;

		internal static readonly string CSX_KID;

		internal static readonly string CSX_PROPERTY_ID;

		internal static readonly string CSX_TYPE_ID;

		internal static readonly string STR_ENCODING_TYPE;

		internal static readonly string STR_PROPERTY_ID;

		internal static readonly string STR_TYPE_ID;

		internal static readonly string STR_SEQUENTIAL;

		internal static readonly string STR_KIDNUM;

		internal static readonly string STR_KIDLIST;

		internal static readonly string POSITIVE_SIGN;

		internal static readonly int MAX_RESERVED_TYPE_IDS;

		internal static readonly long SIMPLIFIED_INLINE_ENCODING_START_TOKENID;

		internal static byte[] dataType;

		static ObxmlOpcode()
		{
			HDR_CSX_VERSION = 1;
			ENCODING_TYPES = new string[23]
			{
				"string",
				"binary",
				"boolean",
				"int",
				"unsigned-int",
				"float",
				"oranum",
				"orats",
				"orats",
				"orats",
				"orats",
				"int(for enum)",
				"string(for qname)",
				"float",
				"int",
				"int",
				"int",
				"unsigned-int",
				"unsigned-int",
				"unsigned-int",
				"unsigned-int",
				"binary",
				"binary"
			};
			STARTELEM_FLAG_SSEQ = 1;
			STARTELEM_FLAG_NOTDECTYP = 2;
			STARTELEM_FLAG_IMPTYP = 4;
			STARTELEM_FLAG_PFXID = 8;
			DATL2MAXLEN = 16383;
			DATL8MAXLEN = 4611686018427387903L;
			DATL2STRMSK = 0;
			DATL2BINMSK = 16384;
			DATL8STRMSK = 0L;
			DATL8BINMSK = 4611686018427387904L;
			ENCODER_IGN_WHITESPACE = 1;
			ENCODER_NO_OPTPRPOPC = 2;
			ENCODER_FORCE_NONSCHEMABASED = 4;
			ENCODER_NO_SCHEMASEQ = 8;
			ENCODER_NO_ARRAYMODE = 16;
			DTD_SYSTEM_EMPTY = 1;
			DTD_internal_EMPTY = 2;
			DTD_internal_SYSTEM_EMPTY = DTD_SYSTEM_EMPTY | DTD_internal_EMPTY;
			DTD_VALUE_EMPTY = 4;
			NAMESPACEID_XML = 1;
			NAMESPACEID_XMLNS = 2;
			NAMESPACEID_NONAMESPACE = 7;
			SPACE1_IDMASK = 31;
			SPACE2_IDMASK = 8191;
			SPACE_FLAGMASK = 224;
			CSX_MAX_HASH_TRIES = 1000;
			CSX_IDGEN_SKIP_LEN = 13;
			UB4MAXVAL = 4294967295L;
			SB4MAXVAL = 2147483647L;
			UB2MAXVAL = 65535;
			SB2MAXVAL = 32767;
			UB1MAXVAL = 255;
			CSX_TOKENTABLE_INITIAL_CAPACITY = 100;
			CSX_NAMESPACE_LIST_INITIAL_CAPACITY = 5;
			CSX_DEFAULT_ENCODING = "UTF-8";
			CSX_INTERNAL_ERR = 35000;
			CSX_UNEXPECTED_EOF_ERR = 35001;
			CSX_NOT_FOUND_ERR = 35002;
			CSX_MAX_PEFIX_LEN_ERR = 35003;
			CSX_INVALID_BINXML_ERR = 35004;
			CSX_INVALID_ENCTYPE_ERR = 35005;
			CSX_MAX_NSURL_ERR = 35006;
			CSX_TYPECONV_ERR = 35007;
			CSX_INVALID_DTDEVT_ERR = 35008;
			CSX_MISMATCH_TGTNS_ERR = 35009;
			CSX_INVALID_SCHEMALINF_ERR = 35010;
			CSX_CANNOT_CREATEURL_ERR = 35011;
			CSX_NSID_ERR = 35012;
			CSX_TOKEN_NOTFOUND_ERR = 35013;
			CSX_VERSION_MISMATCH = 35014;
			CSX_INVALID_OPCODE_ERR = 35015;
			CSX_NO_STRING_TERMINATOR_ERR = 35016;
			CSX_NS_DEFINITION = "http://xmlns.oracle.com/2004/CSX";
			CSX_ENCODING_TYPE = "csx:encodingType";
			CSX_KIDLIST = "csx:kidList";
			CSX_KID = "csx:kid";
			CSX_PROPERTY_ID = "csx:propertyID";
			CSX_TYPE_ID = "csx:typeID";
			STR_ENCODING_TYPE = "encodingType";
			STR_PROPERTY_ID = "propertyID";
			STR_TYPE_ID = "typeID";
			STR_SEQUENTIAL = "sequential";
			STR_KIDNUM = "kidNum";
			STR_KIDLIST = "kidList";
			POSITIVE_SIGN = "+";
			MAX_RESERVED_TYPE_IDS = 100;
			SIMPLIFIED_INLINE_ENCODING_START_TOKENID = 1000L;
			dataType = new byte[243];
			for (int i = 0; i < 243; i++)
			{
				dataType[i] = 1;
			}
			dataType[96] = 7;
			dataType[97] = 7;
			dataType[98] = 7;
			dataType[99] = 7;
			dataType[100] = 7;
			dataType[101] = 7;
			dataType[102] = 7;
			dataType[103] = 7;
			dataType[104] = 7;
			dataType[105] = 7;
			dataType[106] = 7;
			dataType[107] = 7;
			dataType[108] = 7;
			dataType[109] = 7;
			dataType[110] = 7;
			dataType[111] = 7;
			dataType[112] = 7;
			dataType[113] = 7;
			dataType[114] = 7;
			dataType[115] = 7;
			dataType[116] = 7;
			dataType[64] = 2;
			dataType[65] = 2;
			dataType[66] = 2;
			dataType[67] = 2;
			dataType[68] = 2;
			dataType[69] = 2;
			dataType[70] = 2;
			dataType[71] = 2;
			dataType[72] = 2;
			dataType[73] = 2;
			dataType[74] = 2;
			dataType[75] = 2;
			dataType[76] = 2;
			dataType[77] = 2;
			dataType[78] = 2;
			dataType[79] = 2;
			dataType[80] = 2;
			dataType[81] = 2;
			dataType[82] = 2;
			dataType[83] = 2;
			dataType[84] = 2;
			dataType[85] = 2;
			dataType[86] = 2;
			dataType[87] = 2;
			dataType[88] = 2;
			dataType[89] = 2;
			dataType[90] = 2;
			dataType[91] = 2;
			dataType[92] = 2;
			dataType[93] = 2;
			dataType[94] = 2;
			dataType[95] = 2;
			dataType[117] = 4;
			dataType[118] = 4;
			dataType[119] = 4;
			dataType[120] = 4;
			dataType[121] = 5;
			dataType[122] = 5;
			dataType[123] = 5;
			dataType[124] = 5;
			dataType[125] = 6;
			dataType[126] = 6;
			dataType[136] = 12;
			dataType[137] = 12;
			dataType[132] = 9;
			dataType[133] = 9;
			dataType[131] = 8;
			dataType[127] = 10;
			dataType[128] = 10;
			dataType[129] = 11;
			dataType[130] = 11;
			dataType[135] = 13;
			dataType[134] = 3;
		}
	}
}
